package com.kestrel.space.core.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author yebolin
 * @date 2024/9/6
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "space_like")
public class Like {
    /**
     * 评论编号
     */
    @Id
    private Long id;
    /**
     * 博客编号
     */
    private Long blogId;
    /**
     * 目标编号
     */
    private Long targetId;
    /**
     * 点赞类型
     * type = 0 -> 点赞博客
     * type = 1 -> 点赞评论
     */
    private Integer type;
    /**
     * 是否逻辑删除
     */
    private boolean ifDeleted;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
}
